Annual US inflation from December to December (i.e., December YOY), calculated using Consumer Price Index (CPI) for all urban consumers. For example, the Dec-Dec inflation for 2021 is as follows. You can multiply by 100 to express as a percentage.
\[\frac{CPI_{\text{Dec 2021}} - CPI_{\text{Dec 2020}}}{CPI_{\text{Dec 2020}}}%\]
year: calendar yearinflationYOY: December YOY inflationRows: 109
Columns: 2
$ year <dbl> 1913, 1914, 1915, 1916, 1917, 1918, 1919, 1920, 1921, 192…
$ inflationYOY <dbl> 0.0204, 0.0100, 0.0198, 0.1262, 0.1810, 0.2044, 0.1455, 0…
# A tibble: 6 × 2
year inflationYOY
<dbl> <dbl>
1 1913 0.0204
2 1914 0.01
3 1915 0.0198
4 1916 0.126
5 1917 0.181
6 1918 0.204